package com.duanjc.dbtool.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Data
@Configuration
public class DataBaseInfo {

    @Value("${spring.datasource.url}")
    private String url;

    @Value("${spring.datasource.driver-class-name}")
    private String driverClassName;

    @Value("${database.backup.path:/root/backup}")
    private String backUpPath;

    @Value("#{'${database.skip.tables}'.split(',')}")
    private List<String> skipTables;

    @Value("${database.name}")
    private String dbName;
}
